package com.barbeque.mall.mapper;


import com.barbeque.mall.bean.advertise.MarketCoupon;
import com.barbeque.mall.bean.advertise.MarketCouponExample;
import com.barbeque.mall.bean.wx.coupon.VO.SelectCouponListVo;
import com.barbeque.mall.bean.wx.coupon.WxMarketCoupon;
import com.barbeque.mall.bean.wx.coupon.WxMarketCouponExample;
import com.barbeque.mall.bean.wx.coupon.WxMarketCouponUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WxMarketCouponMapper {
    long countByExample(WxMarketCouponExample example);

    int deleteByExample(WxMarketCouponExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(WxMarketCoupon record);

    int insertSelective(WxMarketCoupon record);

    List<WxMarketCoupon> selectByExample(WxMarketCouponExample example);

    WxMarketCoupon selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") WxMarketCoupon record, @Param("example") WxMarketCouponExample example);

    int updateByExample(@Param("record") WxMarketCoupon record, @Param("example") WxMarketCouponExample example);

    int updateByPrimaryKeySelective(WxMarketCoupon record);

    int updateByPrimaryKey(WxMarketCoupon record);

    WxMarketCouponUser selectCouponUserInfoBycouponId(Integer couponId);

    void updateTotalByPrimaryKey(WxMarketCoupon wxMarketCoupon);

    WxMarketCoupon selectByCode(String code);

    SelectCouponListVo selectByWxPrimaryKey(int id);
}